# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-datetime-cron-simple
pkgver=0.2
pkgrel=14
pkgdesc="Perl/CPAN Module DateTime::Cron::Simple"
arch=("any")
url="https://search.cpan.org/~bits/DateTime-Cron-Simple/"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/B/BI/BITS/DateTime-Cron-Simple-$pkgver.tar.gz")
sha256sums=('d9a6b9450550d657714b105c151d7b949da3f81fc38ac9da19cbac04e0130012')

build() {
  cd "$srcdir"/DateTime-Cron-Simple-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/DateTime-Cron-Simple-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
